--- qemu-1.3.0.org/user-exec.c	2012-12-09 18:23:22.469571241 +0000
+++ qemu-1.3.0/user-exec.c	2012-12-09 18:25:59.449556990 +0000
@@ -442,7 +442,7 @@
     unsigned long pc;
     int is_write;
 
-#if (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 3))
+#if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 3))
     pc = uc->uc_mcontext.gregs[R15];
 #else
     pc = uc->uc_mcontext.arm_pc;
